package com.cdd.agent.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdd.common.domain.entity.AppCashWithdrawal;
import com.cdd.agent.api.domain.dto.AgentCashWithdrawaltDto;
import com.cdd.agent.api.domain.vo.AgentTxMingxiVo;
import com.cdd.agent.api.domain.vo.CashWithdrawalVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AppCashWithdrawalMapper extends BaseMapper<AppCashWithdrawal> {

    @Select("SELECT * FROM app_cashwithdrawal WHERE userid = #{userId}")
    List<AgentTxMingxiVo> getAgentTxMingxi(Integer userId);

    List<CashWithdrawalVo> getTxList(AgentCashWithdrawaltDto dto);
}